package com.huawei.appgallery.wishlist.widget;

import android.text.Editable;
import android.text.TextWatcher;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import o.dce$b;
import o.dce.c;

class DetailDescriptionView$2 implements TextWatcher {
    final /* synthetic */ DetailDescriptionView ˊ;

    DetailDescriptionView$2(DetailDescriptionView detailDescriptionView) {
        this.ˊ = detailDescriptionView;
    }

    public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
    }

    public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
        DetailDescriptionView.ˏ(this.ˊ).setBackground(null);
        DetailDescriptionView.ˎ(this.ˊ).setVisibility(8);
        if (charSequence.length() == DetailDescriptionView.ˋ(this.ˊ)) {
            DetailDescriptionView.ˏ(this.ˊ).setBackgroundResource(c.ʼ);
            Animation loadAnimation = AnimationUtils.loadAnimation(this.ˊ.getContext(), dce$b.ॱ);
            if (loadAnimation != null) {
                DetailDescriptionView.ˏ(this.ˊ).startAnimation(loadAnimation);
            }
        }
    }

    public void afterTextChanged(Editable editable) {
    }
}
